<template>
  <component
    v-if="processConfig.selectedNode"
    :is="EditComp[processConfig.selectedNode.nodeType]"
    :node="processConfig.selectedNode"
  ></component>
</template>

<script setup lang="ts" name="FlowPane">
import { inject } from "vue";
import EditComp from "../Editor/index";
import { KEY_PROCESS_CONFIG } from "../flow";
const processConfig = inject(KEY_PROCESS_CONFIG);
</script>

<style scoped></style>
